<include file="Common@Public:header" />
	<div class="amz-banner">
		<div class="am-container" data-am-scrollspy="{animation: 'scale-up', repeat: false}">
			<div class="am-u-md-12">
				<h1>{$category.title}</h1>
				<p>{$category.description}</p>
			</div>
		</div>
	</div>

	<div class="am-container am-margin-top am-margin-bottom" style="min-height:600px;">
		<div class="am-cf am-u-md-12 am-margin-bottom">
			<ul class="am-nav am-nav-pills">
				{:W('Category/lists', array($category['id'], false))}
			</ul>
		</div>

		<div class="am-u-md-9 am-u-sm-12">
			<notempty name="list">
			<!-- Contents================================================== -->
			<volist name="list" id="data">
			<div class="am-cf list-boxes">
				<h2><a href="{:U('Article/detail?id='.$data['id'])}">{$data.title}</a></h2>
				<p>{$data.description}</p>
				<div>
					<div class="am-fl">
						<div class="list-actions">
							<span class="author">{$data.uid|get_username}</span>
							<span>于 {$data.create_time|date='Y-m-d H:i',###}</span> 发表在 
							<span><a href="{:U('Article/lists?category='.get_category_name($data['category_id']))}">{$data.category_id|get_category_title}</a></span> 
							<span>阅读( {$data.view} )</span>
						</div>
					</div>
					<a class="am-btn am-btn-warning am-fr" href="{:U('Article/detail?id='.$data['id'])}">查看全文</a>
				</div>
			</div>
			</volist>
			</notempty>

            <div class="onethink pagination pagination-right pagination-large">
                <article:page cate="$category['id']" listrow="$category['list_row']" />
            </div>

		</div>
		<div class="am-u-md-3 am-u-sm-12">
			<div class="right-box">
				<div class="head-title"><h2>热门文章</h2></div>
				<div class="body ranking">
					<ul class="unstyled">
					<article:list name="list" category="$category['id']" child="true">
						<li <lt name="key" value="3">class="top3"</lt>>
							<i>{$key+1}</i><a href="{:U('Article/detail?id='.$list['id'])}" title="{$list.title}">{$list.title}</a>
						</li>
					</article:list>
					</ul>
				</div>
			</div>
		</div>
	</div>
<include file="Common@Public:footer" />